package com.yuerlive.rainbow.module.search.presenter;

import com.yuerlive.rainbow.base.BasePresenter;
import com.yuerlive.rainbow.base.BasePresenterImpl;
import com.yuerlive.rainbow.base.BaseView;
import com.yuerlive.rainbow.entity.Anchor;
import com.yuerlive.rainbow.entity.BaseData;
import com.yuerlive.rainbow.entity.UserInfo;

import java.util.List;

/**
 * Created by xiaoyi on 2017/5/24.
 */

public interface SearchContract {
    interface Presenter extends BasePresenter {
        void getOthersSearch();

        void search(String key);

        void subscribeUp(String upId, int pos);

        void getUserInfo(String userId,int pos);
    }

    interface View extends BaseView<Presenter> {
        void showOthersSearch(List<Anchor> results);

        void showSearchResults(List<Anchor> results);

        void showSubscribeResult(int code, int pos);

        void showUserInfo(BaseData<UserInfo> data,int pos);

    }
}
